{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nfunction renderExpandIcon(locale) {\n  return function expandIcon(_ref) {\n    var _classNames;\n    var prefixCls = _ref.prefixCls,\n      onExpand = _ref.onExpand,\n      record = _ref.record,\n      expanded = _ref.expanded,\n      expandable = _ref.expandable;\n    var iconPrefix = \"\".concat(prefixCls, \"-row-expand-icon\");\n    return /*#__PURE__*/React.createElement(\"button\", {\n      type: \"button\",\n      onClick: function onClick(e) {\n        onExpand(record, e);\n        e.stopPropagation();\n      },\n      className: classNames(iconPrefix, (_classNames = {}, _defineProperty(_classNames, \"\".concat(iconPrefix, \"-spaced\"), !expandable), _defineProperty(_classNames, \"\".concat(iconPrefix, \"-expanded\"), expandable && expanded), _defineProperty(_classNames, \"\".concat(iconPrefix, \"-collapsed\"), expandable && !expanded), _classNames)),\n      \"aria-label\": expanded ? locale.collapse : locale.expand,\n      \"aria-expanded\": expanded\n    });\n  };\n}\nexport default renderExpandIcon;","map":{"version":3,"names":["classNames","React","renderExpandIcon","locale","expandIcon","_ref","prefixCls","onExpand","record","expanded","expandable","iconPrefix","createElement","type","onClick","e","stopPropagation","className","collapse","expand"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/table/ExpandIcon.js"],"sourcesContent":["import classNames from 'classnames';\nimport * as React from 'react';\nfunction renderExpandIcon(locale) {\n  return function expandIcon(_ref) {\n    let {\n      prefixCls,\n      onExpand,\n      record,\n      expanded,\n      expandable\n    } = _ref;\n    const iconPrefix = `${prefixCls}-row-expand-icon`;\n    return /*#__PURE__*/React.createElement(\"button\", {\n      type: \"button\",\n      onClick: e => {\n        onExpand(record, e);\n        e.stopPropagation();\n      },\n      className: classNames(iconPrefix, {\n        [`${iconPrefix}-spaced`]: !expandable,\n        [`${iconPrefix}-expanded`]: expandable && expanded,\n        [`${iconPrefix}-collapsed`]: expandable && !expanded\n      }),\n      \"aria-label\": expanded ? locale.collapse : locale.expand,\n      \"aria-expanded\": expanded\n    });\n  };\n}\nexport default renderExpandIcon;"],"mappings":";AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,gBAAgB,CAACC,MAAM,EAAE;EAChC,OAAO,SAASC,UAAU,CAACC,IAAI,EAAE;IAAA;IAC/B,IACEC,SAAS,GAKPD,IAAI,CALNC,SAAS;MACTC,QAAQ,GAINF,IAAI,CAJNE,QAAQ;MACRC,MAAM,GAGJH,IAAI,CAHNG,MAAM;MACNC,QAAQ,GAENJ,IAAI,CAFNI,QAAQ;MACRC,UAAU,GACRL,IAAI,CADNK,UAAU;IAEZ,IAAMC,UAAU,aAAML,SAAS,qBAAkB;IACjD,OAAO,aAAaL,KAAK,CAACW,aAAa,CAAC,QAAQ,EAAE;MAChDC,IAAI,EAAE,QAAQ;MACdC,OAAO,EAAE,iBAAAC,CAAC,EAAI;QACZR,QAAQ,CAACC,MAAM,EAAEO,CAAC,CAAC;QACnBA,CAAC,CAACC,eAAe,EAAE;MACrB,CAAC;MACDC,SAAS,EAAEjB,UAAU,CAACW,UAAU,4DAC1BA,UAAU,cAAY,CAACD,UAAU,0CACjCC,UAAU,gBAAcD,UAAU,IAAID,QAAQ,0CAC9CE,UAAU,iBAAeD,UAAU,IAAI,CAACD,QAAQ,gBACpD;MACF,YAAY,EAAEA,QAAQ,GAAGN,MAAM,CAACe,QAAQ,GAAGf,MAAM,CAACgB,MAAM;MACxD,eAAe,EAAEV;IACnB,CAAC,CAAC;EACJ,CAAC;AACH;AACA,eAAeP,gBAAgB"},"metadata":{},"sourceType":"module"}